﻿Imports System.Windows.Forms

Public Class popup_Form

    Dim iowner As SearchBox = Nothing
    Public iSwitchedFocus As Boolean = False

    Public Sub New(IOwner As Control)

        ' This call is required by the designer.
        InitializeComponent()

        ' Add any initialization after the InitializeComponent() call.
        Me.iowner = IOwner
    End Sub

    

    Private Sub popup_Form_Load(sender As Object, e As System.EventArgs) Handles Me.Load
        iSwitchedFocus = True
        Me.iowner.FindForm().Activate()
        iowner.Focus()

    End Sub

End Class